package com.sservice.service.service;

import com.sservice.model.entity.LadingOrder;
import com.sservice.model.vo.LadingOrderVo;
import com.sservice.base.entity.dto.ListResult;

import java.util.List;

public interface ILadingOrderService {
    int deleteByPrimaryKey(Integer id);

    int insert(LadingOrder record);

    int insertSelective(LadingOrder record);

    LadingOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LadingOrder record);

    int updateByPrimaryKey(LadingOrder record);

    /**
     * 批量增加
     *
     * @param list
     * @return
     */
    int addBatch(List<LadingOrder> list);

    /**
     * @param ladingId 提单ID
     * @return
     */
    List<LadingOrder> selectByLadingId(String ladingId);

    /***
     * 查询分页
     * @param lov
     * @return
     */
    ListResult byPage(LadingOrderVo lov);


    /***
     * 查询ID为orderID的订单对应的提单
     * @return
     */
    public List<LadingOrderVo> queryOrderBill(LadingOrder orderId);
}
